<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    var scor = prompt('请输入你的成绩');
    if(scor <= 100 && scor >= 100){
        alert('一辆BMW')
    }else if(scor >= 80 && scor <= 99){
        alert('一台iphone15s')
    }else if (scor >= 60 && scor < 80){
        alert('一本参考书')
    }else if (scor >= 0 && scor <60){
        alert('两本练习题册')
    }
</script>